File tree Expand file tree Collapse file tree 2 files changed +0
-34
lines changed Expand file tree Collapse file tree 2 files changed +0
-34
lines changed Original file line number Diff line number Diff line change @@ -153,13 +153,6 @@ public function maxUploadSize()
153153 return $ this ->config ->get ('lfm.folder_categories. ' . $ this ->currentLfmType () . '.max_size ' );
154154 }
155155
156- // TODO: do not use url function, and add test
157- public function url ($ path = '' )
158- {
159- return '/ ' . $ path ;
160- // return url($path);
161- }
162-
163156 /**
164157 * Check if users are allowed to use their private folders.
165158 *
@@ -225,28 +218,6 @@ public function isRunningOnWindows()
225218 return strtoupper (substr (PHP_OS , 0 , 3 )) === 'WIN ' ;
226219 }
227220
228- /**
229- * Check if the package should set up route to the file or not(storage driver).
230- *
231- * @return bool
232- */
233- public function shouldSetStorageRoute ()
234- {
235- $ driver = $ this ->config ->get ('lfm.driver ' );
236-
237- if ($ driver === 'file ' ) {
238- return false ;
239- }
240-
241- $ storage_root = $ this ->getStorage ('/ ' )->rootPath ();
242-
243- if ($ driver === 'storage ' && (ends_with ($ storage_root , 'public ' ) || ends_with ($ storage_root , 'public/ ' ))) {
244- return false ;
245- }
246-
247- return true ;
248- }
249-
250221 /**
251222 * Shorter function of getting localized error message..
252223 *
Original file line number Diff line number Diff line change @@ -163,11 +163,6 @@ public function testGetFileType()
163163 $ this ->assertEquals ('File ' , $ lfm ->getFileType ('bar ' ));
164164 }
165165
166- public function testUrl ()
167- {
168- $ this ->assertEquals ('/foo/bar ' , (new Lfm )->url ('foo/bar ' ));
169- }
170-
171166 public function testAllowMultiUser ()
172167 {
173168 $ config = m::mock (Config::class);
You can’t perform that action at this time.
0 commit comments