diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2012-12-29 19:53:24 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2012-12-29 19:53:24 +0200 |
commit | a7278cd9133596c3adbad2fc03571ce8bea18272 (patch) | |
tree | 52bf5bfb1e7c79cbf27427e45ed95902147ce2fe /src/watcher.c | |
parent | 03d27824f4cdb403de79e9ecc82037df037723db (diff) | |
download | wydawca-a7278cd9133596c3adbad2fc03571ce8bea18272.tar.gz wydawca-a7278cd9133596c3adbad2fc03571ce8bea18272.tar.bz2 |
Remove unnecessary virtual function.
The source_dir of a spool always refers to a directory on a file system,
so the get_path method is unnecessary and is removed.
Diffstat (limited to 'src/watcher.c')
-rw-r--r-- | src/watcher.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/watcher.c b/src/watcher.c index 1c67294..f6245db 100644 --- a/src/watcher.c +++ b/src/watcher.c | |||
@@ -79,7 +79,7 @@ create_watcher (struct spool *sp, void *data) | |||
79 | int ifd = *(int*)data; | 79 | int ifd = *(int*)data; |
80 | struct dirwatcher *dwp; | 80 | struct dirwatcher *dwp; |
81 | int wd; | 81 | int wd; |
82 | const char *path = get_path (sp); | 82 | const char *path = sp->source_dir; |
83 | 83 | ||
84 | if (!sp) | 84 | if (!sp) |
85 | return 0; | 85 | return 0; |