Skip to content

Commit

Permalink
[cleanup] Remove MAYBE_NEEDED sections
Browse files Browse the repository at this point in the history
Remove some old code that has not found use yet and probably never will.

Author: Thomas Perl <m@thp.io>
Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>
  • Loading branch information
philippedeswert committed Apr 28, 2015
1 parent b9b4ac4 commit 1de2762
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
21 changes: 0 additions & 21 deletions src/usb_moded-modesetting.c
Expand Up @@ -44,27 +44,6 @@

static void report_mass_storage_blocker(const char *mountpoint, int try);

#ifdef MAYBE_NEEDED
int find_number_of_mounts(void)
{
const char *mount;
gchar **mounts;
int mountpoints = 0, i = 0;

mount = find_mounts();
if(mount)
{
mounts = g_strsplit(mount, ",", 0);
/* check amount of mountpoints */
for(i=0 ; mounts[i] != NULL; i++)
{
mountpoints++;
}
}
return(mountpoints);
}
#endif /* MAYBE_NEEDED */

int write_to_file(const char *path, const char *text)
{
int err = -1;
Expand Down
3 changes: 0 additions & 3 deletions src/usb_moded-modesetting.h
Expand Up @@ -22,9 +22,6 @@

#include "usb_moded-dyn-config.h"

#ifdef MAYBE_NEEDED
int find_number_of_mounts(void);
#endif
int write_to_file(const char *path, const char *text);
int set_mtp_mode(void);
int set_dynamic_mode(void);
Expand Down

0 comments on commit 1de2762

Please sign in to comment.