printing: Remove code to upgrade from before b0909cfa14f
authorVolker Lendecke <vl@samba.org>
Mon, 22 Mar 2021 15:35:38 +0000 (16:35 +0100)
committerJeremy Allison <jra@samba.org>
Wed, 24 Mar 2021 20:31:30 +0000 (20:31 +0000)
I think even back then "printing.tdb" would have just been a stale
tdb that would have been better handled externally. It might have been
a product requirement back then, but I think a startup script and not
core code might have been a better choice to handle this.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/printing/printing.c

index 403db85355983fd135747bc2018de8d9dd19cd30..6c13a5e74fba043f05eba7bc3e65ecfd07f7de44 100644 (file)
@@ -74,13 +74,6 @@ bool print_backend_init(struct messaging_context *msg_ctx)
                return false;
        }
 
-       print_cache_path = cache_path(talloc_tos(), "printing.tdb");
-       if (print_cache_path == NULL) {
-               return false;
-       }
-       unlink(print_cache_path);
-       TALLOC_FREE(print_cache_path);
-
        /* handle a Samba upgrade */
 
        for (snum = 0; snum < services; snum++) {