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()
153
153
return $ this ->config ->get ('lfm.folder_categories. ' . $ this ->currentLfmType () . '.max_size ' );
154
154
}
155
155
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
-
163
156
/**
164
157
* Check if users are allowed to use their private folders.
165
158
*
@@ -225,28 +218,6 @@ public function isRunningOnWindows()
225
218
return strtoupper (substr (PHP_OS , 0 , 3 )) === 'WIN ' ;
226
219
}
227
220
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
-
250
221
/**
251
222
* Shorter function of getting localized error message..
252
223
*
Original file line number Diff line number Diff line change @@ -163,11 +163,6 @@ public function testGetFileType()
163
163
$ this ->assertEquals ('File ' , $ lfm ->getFileType ('bar ' ));
164
164
}
165
165
166
- public function testUrl ()
167
- {
168
- $ this ->assertEquals ('/foo/bar ' , (new Lfm )->url ('foo/bar ' ));
169
- }
170
-
171
166
public function testAllowMultiUser ()
172
167
{
173
168
$ config = m::mock (Config::class);
You can’t perform that action at this time.
0 commit comments