[GRASS-SVN] r65322 - grass/trunk/lib/raster

svn_grass at osgeo.org svn_grass at osgeo.org
Tue May 26 04:51:00 PDT 2015


Author: glynn
Date: 2015-05-26 04:51:00 -0700 (Tue, 26 May 2015)
New Revision: 65322

Modified:
   grass/trunk/lib/raster/put_row.c
Log:
Remove unused Rast__open_null_write() function


Modified: grass/trunk/lib/raster/put_row.c
===================================================================
--- grass/trunk/lib/raster/put_row.c	2015-05-26 07:59:00 UTC (rev 65321)
+++ grass/trunk/lib/raster/put_row.c	2015-05-26 11:51:00 UTC (rev 65322)
@@ -507,30 +507,6 @@
     fcb->null_cur_row++;
 }
 
-/*!
-   \brief Open null file for write
-
-   \param fd file descriptor of raster cell data file
-
-   \return field descriptor of null data file
- */
-int Rast__open_null_write(int fd)
-{
-    struct fileinfo *fcb = &R__.fileinfo[fd];
-    int null_fd;
-
-    if (access(fcb->null_temp_name, 0) != 0)
-	G_fatal_error(_("Unable to find a temporary null file <%s>"),
-		      fcb->null_temp_name);
-
-    null_fd = open(fcb->null_temp_name, O_WRONLY);
-    if (null_fd < 0)
-	G_fatal_error(_("Unable to open null file <%s>"),
-		      fcb->null_temp_name);
-
-    return null_fd;
-}
-
 static void write_null_bits_compressed(int null_fd, const unsigned char *flags,
 				int row, size_t size, int fd)
 {



More information about the grass-commit mailing list