From: Volker Lendecke Date: Mon, 22 Mar 2021 15:35:38 +0000 (+0100) Subject: printing: Remove code to upgrade from before b0909cfa14f X-Git-Tag: tevent-0.11.0~1391 X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=49d0268f73c59d570888df4535ab086f8bd46755;p=samba.git printing: Remove code to upgrade from before b0909cfa14f 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 Reviewed-by: Jeremy Allison --- diff --git a/source3/printing/printing.c b/source3/printing/printing.c index 403db853559..6c13a5e74fb 100644 --- a/source3/printing/printing.c +++ b/source3/printing/printing.c @@ -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++) {