Просмотр исходного кода

libdpkg: Remove now unused cistype() functions

These have a suboptimal license and implementation. Just get rid of
them.
Guillem Jover лет назад: 11
Родитель
Сommit
baccc432ff
4 измененных файлов с 0 добавлено и 29 удалено
  1. 0 1
      debian/copyright
  2. 0 4
      lib/dpkg/dpkg.h
  3. 0 1
      lib/dpkg/libdpkg.map
  4. 0 23
      lib/dpkg/utils.c

+ 0 - 1
debian/copyright

@@ -55,7 +55,6 @@ License: GPL-2+
 Files:
 Files:
  lib/dpkg/utils.c
  lib/dpkg/utils.c
 Copyright:
 Copyright:
- Copyright © 2001 Wichert Akkerman <wakkerma@debian.org>
  Copyright © 2008 Ian Jackson <ian@davenant.greenend.org.uk>
  Copyright © 2008 Ian Jackson <ian@davenant.greenend.org.uk>
 License: GPL-2
 License: GPL-2
 
 

+ 0 - 4
lib/dpkg/dpkg.h

@@ -151,10 +151,6 @@ void m_output(FILE *f, const char *name);
 
 
 /*** from utils.c ***/
 /*** from utils.c ***/
 
 
-int cisdigit(int c);
-int cisalpha(int c);
-int cisspace(int c);
-
 int fgets_checked(char *buf, size_t bufsz, FILE *f, const char *fn);
 int fgets_checked(char *buf, size_t bufsz, FILE *f, const char *fn);
 int fgets_must(char *buf, size_t bufsz, FILE *f, const char *fn);
 int fgets_must(char *buf, size_t bufsz, FILE *f, const char *fn);
 
 

+ 0 - 1
lib/dpkg/libdpkg.map

@@ -71,7 +71,6 @@ LIBDPKG_PRIVATE {
 
 
 	# Charset and string functions
 	# Charset and string functions
 	c_isbits;
 	c_isbits;
-	cisdigit;
 
 
 	str_match_end;
 	str_match_end;
 	str_fnv_hash;
 	str_fnv_hash;

+ 0 - 23
lib/dpkg/utils.c

@@ -2,8 +2,6 @@
  * libdpkg - Debian packaging suite library routines
  * libdpkg - Debian packaging suite library routines
  * utils.c - helper functions for dpkg
  * utils.c - helper functions for dpkg
  *
  *
- * Copyright © 2001 Wichert Akkerman <wakkerma@debian.org>
- *
  * This is free software; you can redistribute it and/or modify
  * This is free software; you can redistribute it and/or modify
  * it under the terms of version 2 of the GNU General Public
  * it under the terms of version 2 of the GNU General Public
  * License version 2 as published by the Free Software Foundation.
  * License version 2 as published by the Free Software Foundation.
@@ -25,27 +23,6 @@
 #include <dpkg/i18n.h>
 #include <dpkg/i18n.h>
 #include <dpkg/dpkg.h>
 #include <dpkg/dpkg.h>
 
 
-/*
- * Reimplementation of the standard ctype.h is* functions. Since gettext
- * has overloaded the meaning of LC_CTYPE we can't use that to force C
- * locale, so use these cis* functions instead.
- */
-
-
-int cisdigit(int c) {
-	return (c>='0') && (c<='9');
-}
-
-int cisalpha(int c) {
-	return ((c>='a') && (c<='z')) || ((c>='A') && (c<='Z'));
-}
-
-int
-cisspace(int c)
-{
-	return (c == '\n' || c == '\t' || c == ' ');
-}
-
 int
 int
 fgets_checked(char *buf, size_t bufsz, FILE *f, const char *fn)
 fgets_checked(char *buf, size_t bufsz, FILE *f, const char *fn)
 {
 {