File tree Expand file tree Collapse file tree 3 files changed +1
-19
lines changed
Expand file tree Collapse file tree 3 files changed +1
-19
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ This serves two purposes:
2727- Removed ` RenderData:.getCurrentPage ` method deprecated in v1.0.0-RC.2
2828- Removed ` RenderData:.getCurrentRoute ` method deprecated in v1.0.0-RC.2
2929- Removed deprecated ` HydePage::$canonicalUrl ` property (replaced with ` HydePage::getCanonicalUrl() ` ).
30+ - Removed deprecated ` SourceFile::withoutDirectoryPrefix ` method only used in one test.
3031
3132### Fixed
3233- Fixed the blog post article view where metadata assembly used legacy hard-coded paths instead of dynamic path information.
Original file line number Diff line number Diff line change 55namespace Hyde \Support \Filesystem ;
66
77use Hyde \Pages \Concerns \HydePage ;
8- use Illuminate \Support \Str ;
98
109/**
1110 * File abstraction for a project source file.
@@ -40,11 +39,4 @@ public function toArray(): array
4039 'pageClass ' => $ this ->pageClass ,
4140 ]);
4241 }
43-
44- /** @deprecated This method is not used anywhere other than tests and may be removed */
45- public function withoutDirectoryPrefix (): string
46- {
47- // Works like basename, but keeps subdirectory names.
48- return Str::after ($ this ->path , $ this ->pageClass ::sourceDirectory ().'/ ' );
49- }
5042}
Original file line number Diff line number Diff line change @@ -121,15 +121,4 @@ public function test_to_array_with_file_in_subdirectory()
121121 Filesystem::unlink ('foo/bar.txt ' );
122122 rmdir (Hyde::path ('foo ' ));
123123 }
124-
125- public function test_without_directory_prefix_retains_subdirectories ()
126- {
127- $ this ->assertSame ('foo/bar/baz.txt ' ,
128- SourceFile::make ('foo/bar/baz.txt ' , MarkdownPage::class)->withoutDirectoryPrefix ()
129- );
130-
131- $ this ->assertSame ('foo/bar.txt ' ,
132- SourceFile::make ('_pages/foo/bar.txt ' , MarkdownPage::class)->withoutDirectoryPrefix ()
133- );
134- }
135124}
You can’t perform that action at this time.
0 commit comments