[Tex/LaTex] Remove Contents Heading From Table of Contents on Title Page

table of contents

I'm having difficulty removing the contents heading from my Latex document, possibly because I'm using a title page.

I've tried the standard ways I found online such as:

Option 1

\tableofcontents*

Option 2

\makeatletter
\renewcommand\tableofcontents{%\@starttoc{toc}%}
\makeatother

Option 3

  \makeatletter
  \@starttoc{toc}
  \makeatother

Option 4

\begin{KeepFromToc}
  \tableofcontents
\end{KeepFromToc}    

The code I'm using is here:

\documentclass{article}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{fancyhdr}
\usepackage[margin=0.9in]{geometry}
\renewcommand*\familydefault{\sfdefault} 
\usepackage{titling}
\usepackage{tikz}
\usetikzlibrary{calc}
\usetikzlibrary{decorations.pathmorphing}

\usepackage{titlesec}
\titleformat{\section}[frame]
{\normalfont} {} {5pt} {\Large\bfseries\thesection.\quad}

\begin{document}

\begin{titlepage}
  \begin{tikzpicture}[overlay,remember picture]
    \draw [line width=0.5mm,decorate]
    ($ (current page.north west) + (0.5cm,-0.5cm) $)
    rectangle
    ($ (current page.south east) + (-0.5cm,0.5cm) $);
  \end{tikzpicture}

  \centering
  \vfill
  {\huge Title} 
  \vfill
  \tableofcontents     
  \vfill
   \end{titlepage} 
\end{document}

Does anybody have any ideas?

Thanks,

Chris.

Best Answer

This worked for me:

\documentclass{article}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{fancyhdr}
\usepackage[margin=0.9in]{geometry}
\renewcommand*\familydefault{\sfdefault} 
\usepackage{titling}
\usepackage{tikz}
\usetikzlibrary{calc}
\usetikzlibrary{decorations.pathmorphing}


\makeatletter
\renewcommand{\tableofcontents}{%
  \@starttoc{toc}%
}
\makeatother

\usepackage{titlesec}
\titleformat{\section}[frame]
{\normalfont} {} {5pt} {\Large\bfseries\thesection.\quad}


\begin{document}

\begin{titlepage}
  \begin{tikzpicture}[overlay,remember picture]
    \draw [line width=0.5mm,decorate]
    ($ (current page.north west) + (0.5cm,-0.5cm) $)
    rectangle
    ($ (current page.south east) + (-0.5cm,0.5cm) $);
  \end{tikzpicture}

  \centering
  \vfill
  {\huge Title} 
  \vfill
  \tableofcontents     
  \vfill
   \end{titlepage} 
\section{Some content}
\end{document}