summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikolai Kondrashov <spbnick@gmail.com>2011-12-26 19:46:48 +0200
committerNikolai Kondrashov <spbnick@gmail.com>2011-12-26 19:46:48 +0200
commit777f16529c6f10b21e1eebad5b24435f8e860c2a (patch)
tree97c565d8b197c484dcf0f39f9890dfbe971c2556
parente81f9c654d64ad87231c85cfe2428113f430d9ee (diff)
downloadusbhid-dump-777f16529c6f10b21e1eebad5b24435f8e860c2a.tar.gz
Remove no longer used str.c
Remove str.c, containing only uhd_strisblank function, which is no longer used.
-rw-r--r--include/uhd/Makefile.am3
-rw-r--r--include/uhd/str.h42
-rw-r--r--lib/Makefile.am3
-rw-r--r--lib/str.c39
-rw-r--r--src/usbhid-dump.c1
5 files changed, 2 insertions, 86 deletions
diff --git a/include/uhd/Makefile.am b/include/uhd/Makefile.am
index cc5a087..1083140 100644
--- a/include/uhd/Makefile.am
+++ b/include/uhd/Makefile.am
@@ -22,5 +22,4 @@ noinst_HEADERS = \
iface.h \
iface_list.h \
libusb.h \
- misc.h \
- str.h
+ misc.h
diff --git a/include/uhd/str.h b/include/uhd/str.h
deleted file mode 100644
index a34dcb1..0000000
--- a/include/uhd/str.h
+++ /dev/null
@@ -1,42 +0,0 @@
-/** @file
- * @brief usbhid-dump - string utilities
- *
- * Copyright (C) 2010 Nikolai Kondrashov
- *
- * This file is part of usbhid-dump.
- *
- * Usbhid-dump is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * Usbhid-dump is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with usbhid-dump; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
- * @author Nikolai Kondrashov <spbnick@gmail.com>
- *
- * @(#) $Id$
- */
-
-#ifndef __UHD_STR_H__
-#define __UHD_STR_H__
-
-#include <stdbool.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-extern bool uhd_strisblank(const char *str);
-
-#ifdef __cplusplus
-} /* extern "C" */
-#endif
-
-#endif /* __UHD_STR_H__ */
diff --git a/lib/Makefile.am b/lib/Makefile.am
index b9ce040..79a18bb 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -23,5 +23,4 @@ libuhd_la_SOURCES = \
dev_list.c \
iface.c \
iface_list.c \
- libusb.c \
- str.c
+ libusb.c
diff --git a/lib/str.c b/lib/str.c
deleted file mode 100644
index a9a1791..0000000
--- a/lib/str.c
+++ /dev/null
@@ -1,39 +0,0 @@
-/** @file
- * @brief usbhid-dump - string utilities
- *
- * Copyright (C) 2010 Nikolai Kondrashov
- *
- * This file is part of usbhid-dump.
- *
- * Usbhid-dump is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * Usbhid-dump is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with usbhid-dump; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
- * @author Nikolai Kondrashov <spbnick@gmail.com>
- *
- * @(#) $Id$
- */
-
-#include "config.h"
-
-#include "uhd/str.h"
-#include <ctype.h>
-
-bool
-uhd_strisblank(const char *str)
-{
- for (; *str != '\0'; str++)
- if (!isblank(*str))
- return false;
- return true;
-}
diff --git a/src/usbhid-dump.c b/src/usbhid-dump.c
index 0f78a72..fca81a9 100644
--- a/src/usbhid-dump.c
+++ b/src/usbhid-dump.c
@@ -26,7 +26,6 @@
#include "config.h"
#include "uhd/iface_list.h"
-#include "uhd/str.h"
#include "uhd/libusb.h"
#include "uhd/misc.h"