aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Numerlor <[email protected]>2021-02-20 01:23:41 +0100
committerGravatar Numerlor <[email protected]>2021-02-23 03:33:28 +0100
commite7d7f958b60045a447d5460e740a703654450a0c (patch)
tree10078fe3b909ba409172d6e930637c6240694b1d
parentUse "inventories" when referring to the cog's collection of sphinx invs (diff)
Remove unnecessary comments
The comments explain things that should be clear, or basic concepts
Diffstat (limited to '')
-rw-r--r--bot/exts/info/doc/_cog.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/bot/exts/info/doc/_cog.py b/bot/exts/info/doc/_cog.py
index ed67abb79..eb3de9d46 100644
--- a/bot/exts/info/doc/_cog.py
+++ b/bot/exts/info/doc/_cog.py
@@ -209,16 +209,11 @@ class DocCog(commands.Cog):
log.debug("Refreshing documentation inventory...")
self.inventory_scheduler.cancel_all()
- # Clear the old base URLS and doc symbols to ensure
- # that we start from a fresh local dataset.
- # Also, reset the cache used for fetching documentation.
self.base_urls.clear()
self.doc_symbols.clear()
self.renamed_symbols.clear()
await self.item_fetcher.clear()
- # Run all coroutines concurrently - since each of them performs an HTTP
- # request, this speeds up fetching the inventory data heavily.
coros = [
self.update_or_reschedule_inventory(
package["package"], package["base_url"], package["inventory_url"]
@@ -317,9 +312,6 @@ class DocCog(commands.Cog):
else:
symbol = symbol_name.strip("`")
- # Fetching documentation for a symbol (at least for the first time, since
- # caching is used) takes quite some time, so let's send typing to indicate
- # that we got the command, but are still working on it.
async with ctx.typing():
doc_embed = await self.get_symbol_embed(symbol)
@@ -384,8 +376,6 @@ class DocCog(commands.Cog):
await self.bot.api_client.delete(f'bot/documentation-links/{package_name}')
async with ctx.typing():
- # Rebuild the inventory to ensure that everything
- # that was from this package is properly deleted.
await self.refresh_inventories()
await doc_cache.delete(package_name)
await ctx.send(f"Successfully deleted `{package_name}` and refreshed the inventories.")