[Tex/LaTex] moderncv: how can I remove the dotfill from subsection

moderncv

I am using the banking style, and I can't locate any kind of dot-fill in the subsection's command within the moderncvbody*.sty or moderncvstyle*.sty files.

For example:

\documentclass[11pt,a4paper,sans]{moderncv}        % possible options include font size ('10pt', '11pt' and '12pt'), paper size ('a4paper', 'letterpaper', 'a5paper', 'legalpaper', 'executivepaper' and 'landscape') and font family ('sans' and 'roman')

% modern themes
\moderncvstyle{banking}                            % style options are 'casual' (default), 'classic', 'oldstyle' and 'banking'
\moderncvcolor{blue}                                % color options 'blue' (default), 'orange', 'green', 'red', 'purple', 'grey' and 'black'

\usepackage[utf8]{inputenc}                       % if you are not using xelatex ou lualatex, replace by 
\usepackage[scale=0.75]{geometry}

\usepackage{import}

\name{My}{Name}
\title{Curriculum Vitae} 
\address{my address, line 1, line 2, line 3, postcode}{}{}
\phone[mobile]{+44 12345 12345}
\phone[fixed]{01234 123456}
\email{myname@hotmail.co.uk}
\homepage{www.myname.com}

\begin{document}

\makecvtitle

\section{Education}

\vspace{5pt}

\subsection{Academic Qualifications}

\vspace{5pt}

\begin{itemize}

\item{\cventry{2011--2015}{Some title }{Somewhere University}{Over There}{\textit{Some Grade}}{}}

\end{itemize}

\end{document}

This code produces the following output:

And I want to get rid of the dots that appear in the subsection's headline (here: "Academic Qualifications").

Best Answer

Since moderncv is a standalone class, e.g. does not use \LoadClass{article} etc. the usual way of getting rid off dots in a ToC like style by using \@dotsep etc. does not work directly.

The easiest way seems to be 'brute' force

 \renewcommand{\subsectionrule}{}

Here's the otherwise unchanged code:

\documentclass[11pt,a4paper,sans]{moderncv}        % possible options include font size ('10pt', '11pt' and '12pt'), paper size ('a4paper', 'letterpaper', 'a5paper', 'legalpaper', 'executivepaper' and 'landscape') and font family ('sans' and 'roman')

% modern themes
\moderncvstyle{banking}                            % style options are 'casual' (default), 'classic', 'oldstyle' and 'banking'
\moderncvcolor{blue}                                % color options 'blue' (default), 'orange', 'green', 'red', 'purple', 'grey' and 'black'

\usepackage[utf8]{inputenc}                       % if you are not using xelatex ou lualatex, replace by 
\usepackage[scale=0.75]{geometry}
\usepackage{import}

\name{My}{Name}
\title{Curriculum Vitae} 
\address{my address, line 1, line 2, line 3, postcode}{}{}
\phone[mobile]{+44 12345 12345}
\phone[fixed]{01234 123456}
\email{myname@hotmail.co.uk}
\homepage{www.myname.com}

\renewcommand{\subsectionrule}{}

\begin{document}

\makecvtitle

\section{Education}

\vspace{5pt}

\subsection{Academic Qualifications}

\vspace{5pt}

\begin{itemize}

\item{\cventry{2011--2015}{Some title }{Somewhere University}{Over There}{\textit{Some Grade}}{}}

\end{itemize}

\end{document}