[PATCH] dwrite: Remove unused functions.