From 6afd496d9bf64cdc911bab6393d24240db3df04d Mon Sep 17 00:00:00 2001
From: Bjoern Schiessle <schiessle@owncloud.com>
Date: Tue, 18 Feb 2014 16:32:49 +0100
Subject: [PATCH] remove prepFileTarget() seems that it is no longer in use

---
 lib/private/share/share.php | 18 ------------------
 lib/public/share.php        |  9 ---------
 2 files changed, 27 deletions(-)

diff --git a/lib/private/share/share.php b/lib/private/share/share.php
index ef0ed257c5..c819f6bf54 100644
--- a/lib/private/share/share.php
+++ b/lib/private/share/share.php
@@ -89,24 +89,6 @@ class Share extends \OC\Share\Constants {
 		return false;
 	}
 
-	/**
-	 * Prepare a path to be passed to DB as file_target
-	 * @param string $path path
-	 * @return string Prepared path
-	 */
-	public static function prepFileTarget( $path ) {
-
-		// Paths in DB are stored with leading slashes, so add one if necessary
-		if ( substr( $path, 0, 1 ) !== '/' ) {
-
-			$path = '/' . $path;
-
-		}
-
-		return $path;
-
-	}
-
 	/**
 	 * Find which users can access a shared item
 	 * @param $path to the file
diff --git a/lib/public/share.php b/lib/public/share.php
index fcc61b2f4f..a08134b383 100644
--- a/lib/public/share.php
+++ b/lib/public/share.php
@@ -61,15 +61,6 @@ class Share extends \OC\Share\Constants {
 		return \OC\Share\Share::isEnabled();
 	}
 
-	/**
-	 * Prepare a path to be passed to DB as file_target
-	 * @param string $path path
-	 * @return string Prepared path
-	 */
-	public static function prepFileTarget($path) {
-		return \OC\Share\Share::prepFileTarget($path);
-	}
-
 	/**
 	 * Find which users can access a shared item
 	 * @param $path to the file
-- 
GitLab