mario had spent the time ensuring that san gimignano , now under the sober and reformed control of his old comrade , roberto , and its territory , no longer posed a threat , and that the last pockets of pazzi resistance had been weeded out .