changeset 428:1e748d834e24 api-inversion

Delete char *db field from audioDB class. One step at a time...
author mas01cr
date Wed, 24 Dec 2008 10:55:28 +0000
parents adaa6a688a04
children 5893ec2ec246
files audioDB.cpp audioDB.h common.cpp
diffstat 3 files changed, 0 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/audioDB.cpp	Wed Dec 24 10:55:24 2008 +0000
+++ b/audioDB.cpp	Wed Dec 24 10:55:28 2008 +0000
@@ -201,8 +201,6 @@
   cmdline_parser_free(&args_info);
   if(indata)
     munmap(indata,statbuf.st_size);
-  if(db)
-    munmap(db,getpagesize());
   if(fileTable)
     munmap(fileTable, fileTableLength);
   if(trackTable)
--- a/audioDB.h	Wed Dec 24 10:55:24 2008 +0000
+++ b/audioDB.h	Wed Dec 24 10:55:28 2008 +0000
@@ -242,7 +242,6 @@
   int lshfid;
   bool forWrite;
   int infid;
-  char* db;
   char* indata;
   struct stat statbuf;  
   dbTableHeaderPtr dbH;
@@ -438,7 +437,6 @@
     lshfid(0),					\
     forWrite(false),				\
     infid(0),					\
-    db(0),					\
     indata(0),					\
     dbH(0),					\
     adb(0),                                     \
--- a/common.cpp	Wed Dec 24 10:55:24 2008 +0000
+++ b/common.cpp	Wed Dec 24 10:55:28 2008 +0000
@@ -108,8 +108,6 @@
   dbfid = adb->fd;
   dbH = adb->header;
 
-  CHECKED_MMAP(char *, db, 0, getpagesize());
-
   // Make some handy tables with correct types
   if(forWrite || (dbH->length > 0)) {
     if(forWrite) {