« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/things/NewsEntry.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/data/things/NewsEntry.js')
-rw-r--r--src/data/things/NewsEntry.js18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/data/things/NewsEntry.js b/src/data/things/NewsEntry.js
index 65fd125b..7cbbfc4b 100644
--- a/src/data/things/NewsEntry.js
+++ b/src/data/things/NewsEntry.js
@@ -1,7 +1,4 @@
-const NEWS_DATA_FILE = 'news.yaml';
-
 import {V} from '#composite';
-import {sortChronologically} from '#sort';
 import Thing from '#thing';
 import {parseDate} from '#yaml';
 
@@ -58,19 +55,4 @@ export class NewsEntry extends Thing {
       'Content': {property: 'content'},
     },
   };
-
-  static [Thing.getYamlLoadingSpec] = ({
-    documentModes: {allInOne},
-    thingConstructors: {NewsEntry},
-  }) => ({
-    title: `Process news data file`,
-    file: NEWS_DATA_FILE,
-
-    documentMode: allInOne,
-    documentThing: NewsEntry,
-
-    sort({newsData}) {
-      sortChronologically(newsData, {latestFirst: true});
-    },
-  });
 }