From 2d5c19105228e47df42218fd6b8e0b41d3ba394f Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sat, 1 Dec 2018 19:57:24 +0100 Subject: util: Remove unused function --- crocoite/behavior.py | 2 +- crocoite/util.py | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/crocoite/behavior.py b/crocoite/behavior.py index 8cc7ab4..3e828b6 100644 --- a/crocoite/behavior.py +++ b/crocoite/behavior.py @@ -32,7 +32,7 @@ import pkg_resources from html5lib.serializer import HTMLSerializer import yaml -from .util import randomString, getFormattedViewportMetrics, removeFragment +from .util import getFormattedViewportMetrics, removeFragment from . import html from .html import StripAttributeFilter, StripTagFilter, ChromeTreeWalker from .devtools import Crashed diff --git a/crocoite/util.py b/crocoite/util.py index 18a051a..da6d54a 100644 --- a/crocoite/util.py +++ b/crocoite/util.py @@ -26,11 +26,6 @@ import random, sys import hashlib, pkg_resources from urllib.parse import urlsplit, urlunsplit -def randomString (length=None, chars='abcdefghijklmnopqrstuvwxyz'): - if length is None: - length = random.randint (16, 32) - return ''.join (map (lambda x: random.choice (chars), range (length))) - def packageUrl (path): """ Create URL for package data stored into WARC -- cgit v1.2.3