summaryrefslogtreecommitdiff
path: root/support/texlab/crates/bibutils_sys/src/bu_auth.c
diff options
context:
space:
mode:
Diffstat (limited to 'support/texlab/crates/bibutils_sys/src/bu_auth.c')
-rw-r--r--support/texlab/crates/bibutils_sys/src/bu_auth.c63
1 files changed, 0 insertions, 63 deletions
diff --git a/support/texlab/crates/bibutils_sys/src/bu_auth.c b/support/texlab/crates/bibutils_sys/src/bu_auth.c
deleted file mode 100644
index f0c9194ca6..0000000000
--- a/support/texlab/crates/bibutils_sys/src/bu_auth.c
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * bu_auth.c
- *
- * Copyright (c) Chris Putnam 2017-2019
- *
- * Source code released under the GPL version 2
- */
-#include <string.h>
-#include "bu_auth.h"
-#include "msvc_fix.h"
-
-const char *bu_genre[] = {
- "academic journal",
- "airtel",
- "collection",
- "communication",
- "Diploma thesis",
- "Doctoral thesis",
- "electronic",
- "e-mail communication"
- "Habilitation thesis",
- "handwritten note",
- "hearing",
- "journal article",
- "Licentiate thesis",
- "magazine",
- "magazine article",
- "manuscript",
- "Masters thesis",
- "memo",
- "miscellaneous",
- "newspaper article",
- "pamphlet",
- "Ph.D. thesis",
- "press release",
- "teletype",
- "television broadcast",
- "unpublished"
-};
-int nbu_genre = sizeof( bu_genre ) / sizeof( const char *);
-
-static int
-position_in_list( const char *list[], int nlist, const char *query )
-{
- int i;
- for ( i=0; i<nlist; ++i ) {
- if ( !strcasecmp( query, list[i] ) ) return i;
- }
- return -1;
-}
-
-int
-bu_findgenre( const char *query )
-{
- return position_in_list( bu_genre, nbu_genre, query );
-}
-
-int
-is_bu_genre( const char *query )
-{
- if ( bu_findgenre( query ) != -1 ) return 1;
- return 0;
-}