remove legacy from docs (#15112)

Summary:
Fixes https://github.com/pytorch/pytorch/issues/15062
Pull Request resolved: https://github.com/pytorch/pytorch/pull/15112

Differential Revision: D13547845

Pulled By: soumith

fbshipit-source-id: 61e3e6c6b0f6b6b3d571bee02db2938ea9698c99
diff --git a/README.md b/README.md
index cc43703..cc076d7 100644
--- a/README.md
+++ b/README.md
@@ -42,7 +42,6 @@
 | **torch.nn** | a neural networks library deeply integrated with autograd designed for maximum flexibility |
 | **torch.multiprocessing** | Python multiprocessing, but with magical memory sharing of torch Tensors across processes. Useful for data loading and Hogwild training |
 | **torch.utils** | DataLoader, Trainer and other utility functions for convenience |
-| **torch.legacy(.nn/.optim)** | legacy code that has been ported over from torch for backward compatibility reasons |
 
 Usually one uses PyTorch either as:
 
diff --git a/docs/source/index.rst b/docs/source/index.rst
index 825c139..07c8dd4 100644
--- a/docs/source/index.rst
+++ b/docs/source/index.rst
@@ -45,7 +45,6 @@
    model_zoo
    onnx
    torch.distributed.deprecated <distributed_deprecated>
-   torch.legacy <legacy>
 
 .. toctree::
    :glob:
diff --git a/docs/source/legacy.rst b/docs/source/legacy.rst
deleted file mode 100644
index bc1aad5..0000000
--- a/docs/source/legacy.rst
+++ /dev/null
@@ -1,4 +0,0 @@
-Legacy package - torch.legacy
-===================================
-
-.. automodule:: torch.legacy